<script>
export default {
  created () {
    // 调用API从本地缓存中获取数据
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)
  },

  onShow (options) {
    if (options && options.referrerInfo && options.referrerInfo.appId) this.$store.dispatch('getAppId', options.referrerInfo.appId);
    // console.log(options);
    // var scene = decodeURIComponent(options.scene);
    // console.log(scene);
  },
}
</script>
